<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>

    async function f1() {
        await new Promise(resolve => {
            setTimeout(() => {
                console.log("hello")
                resolve()
            }, 0)
        })
        console.log("world")

    }

    f1()

</script>
</body>
</html>